FROM java:11
ENV PARAMS="--spring.profiles.active=dev"
ADD target/backend-doc.jar /backend-doc.jar
RUN  echo 'Asia/Shanghai' >/etc/timezone
EXPOSE 8116/tcp
ENTRYPOINT ["sh","-c","java -jar $JAVA_OPTS /backend-doc.jar $PARAMS"]